﻿<UserControl x:Class="Microsoft.WebAnalytics.Design.Editors.AnalyticsCategoryLayout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:docs="clr-namespace:System.Windows.Documents;assembly=PresentationFramework"             
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:PropertyEditing="clr-namespace:Microsoft.Windows.Design.PropertyEditing;assembly=Microsoft.Windows.Design.Interaction"
    >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Center" Margin="8" TextWrapping="Wrap" FontWeight="Bold">
            <Hyperlink NavigateUri="http://msaf.codeplex.com" x:Name="MSAF" RequestNavigate="OnRequestNavigate" >Microsoft Silverlight Analytics Framework</Hyperlink>
        </TextBlock>
        <ItemsControl Grid.Row="1" ItemsSource="{Binding Properties}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <PropertyEditing:PropertyContainer PropertyEntry="{Binding}" />
                </DataTemplate>
            </ItemsControl.ItemTemplate>
            <ItemsControl.Template>
                <ControlTemplate>
                    <StackPanel IsItemsHost="True"/>
                </ControlTemplate>
            </ItemsControl.Template>
        </ItemsControl>
        <TextBlock HorizontalAlignment="Center" Grid.Row="2" Margin="8" TextWrapping="Wrap">
            <Hyperlink Click="OpenHelp">View documentation</Hyperlink>
            <Run Text=", "/>
            <Hyperlink x:Name="SearchOnlineLink" RequestNavigate="OnRequestNavigate" >search online</Hyperlink>
            <Run Text=", "/>
            <Hyperlink x:Name="SearchIssues" RequestNavigate="OnRequestNavigate" >search issue tracker</Hyperlink>
            <Run Text=", or "/>
            <Hyperlink x:Name="SearchDiscussions" RequestNavigate="OnRequestNavigate" >search discussions</Hyperlink>
            <Run Text="."/>
        </TextBlock>
    </Grid>
</UserControl>
